<template>
	<div>
		<h1>首页</h1>
		
		<hr>
		<h4>前端用户操作</h4>
		<el-button @click="goPage('/GoodsList')">商品列表</el-button>
		<el-button @click="goPage('/MyCart')">我的购物车</el-button>
		<el-button @click="goPage('/GetCoupon')">领券中心</el-button>
		
		<hr>
		<h4>后台技术人员操作</h4>
		<el-button @click="goPage('/CouponTemplate')">添加优惠券模板</el-button>
		
		<hr>
		<h4>后台运营人员操作</h4>
		<el-button @click="goPage('/CouponInsert')">添加优惠券</el-button>
	</div>
</template>

<script>
	export default {
		data(){
			return {
				
			}
		},
		methods: {
			//跳转页面的方法
			goPage(url){
				this.$router.push(url)
			}
		}
	}
</script>

<style>
</style>